﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Bmz.Laboratory.Workflow.Enums;

namespace Bmz.Laboratory.Workflow.Entity
{
    public class InstanceFlow:BaseEntity
    {
        [Key]
        [MaxLength(50)]
        public string Id { get; set; }

        /// <summary>
        /// 流程状态：打开 关闭 完结
        /// </summary>
        public InstanceFlowStatusEnum Status { get; set; }

        [MaxLength(50)]
        public string TemplateFlowCode { get; set; }

        [ForeignKey("TemplateFlowCode")]
        public virtual TemplateFlow TemplateFlow { get; set; }

        public virtual ICollection<InstanceNode> InstanceNodes { get; set; }
    }
}
